package sisi.invoices;

import java.io.Serializable;
import javax.persistence.*;

import java.sql.Timestamp;


/**
 * Suppinvoicedetail.java - The persistent class for the <i>suplier's invoice detail database table</i>. 
 * @author Pedro Gonzalez pedro@sisisoftware.it
 * @author Claudio Pelosi claudio@sisisoftware.it
 * @author SISI Software S.n.c. - www.sisisoftware.it
 * @version 1.0, 08/09/2014
 * 
 */
@Entity
@Table(name="suppinvoicedetail")
public class Suppinvoicedetail implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@SequenceGenerator(name="SUPPINVOICEDETAIL_RECNUM_GENERATOR", sequenceName="SUPPINVOICEDETAILSEQ", allocationSize=1)
	@GeneratedValue(strategy=GenerationType.SEQUENCE, generator="SUPPINVOICEDETAIL_RECNUM_GENERATOR")
	@Column(unique=true, nullable=false)
	private Integer idmaster;

	
	private Boolean billitem;

	@Column(length=10)
	private String curr;

	private Integer custid;

	@Column(length=50)
	private String custname;

	@Column(name="dt_up")
	private Timestamp dtUp;

	private double exchangerate;

	@Column(name="nfys_note", length=255)
	private String nfysNote;

	@Column(length=100)
	private String note;

	@Column(name="order_")
	private Integer order;

	private Boolean paid;

	private double paidamount;

	private Timestamp paiddt;

	@Column(length=20)
	private String partno;

	private Integer productid;

	@Column(length=100)
	private String productname;

	private double quantity;

	private Integer recnum;

	private Integer seq;

	@Column(length=2)
	private String stat;

	private Integer suppid;

	@Column(length=50)
	private String suppname;

	@Column(length=25)
	private String suppnuminvoice;

	private double supptaxed;

	private double suppvat;

	private double suppvatperc;

	@Column(length=5)
	private String tdoc;

	private double totalamount;

	@Column(length=1)
	private String type;

	@Column(length=10)
	private String um;

	private double unitprice;

	@Column(length=50)
	private String vatarticle;

	@Column(length=5)
	private String vatcode;

	public Suppinvoicedetail() {
	}

	public Boolean getBillitem() {
		return this.billitem;
	}

	public void setBillitem(Boolean billitem) {
		this.billitem = billitem;
	}

	public String getCurr() {
		return this.curr;
	}

	public void setCurr(String curr) {
		this.curr = curr;
	}

	public Integer getCustid() {
		return this.custid;
	}

	public void setCustid(Integer custid) {
		this.custid = custid;
	}

	public String getCustname() {
		return this.custname;
	}

	public void setCustname(String custname) {
		this.custname = custname;
	}

	public Timestamp getDtUp() {
		return this.dtUp;
	}

	public void setDtUp(Timestamp dtUp) {
		this.dtUp = dtUp;
	}

	public double getExchangerate() {
		return this.exchangerate;
	}

	public void setExchangerate(double exchangerate) {
		this.exchangerate = exchangerate;
	}

	public String getNfysNote() {
		return this.nfysNote;
	}

	public void setNfysNote(String nfysNote) {
		this.nfysNote = nfysNote;
	}

	public String getNote() {
		return this.note;
	}

	public void setNote(String note) {
		this.note = note;
	}

	public Integer getOrder() {
		return this.order;
	}

	public void setOrder(Integer order) {
		this.order = order;
	}

	public Boolean getPaid() {
		return this.paid;
	}

	public void setPaid(Boolean paid) {
		this.paid = paid;
	}

	public double getPaidamount() {
		return this.paidamount;
	}

	public void setPaidamount(double paidamount) {
		this.paidamount = paidamount;
	}

	public Timestamp getPaiddt() {
		return this.paiddt;
	}

	public void setPaiddt(Timestamp paiddt) {
		this.paiddt = paiddt;
	}

	public String getPartno() {
		return this.partno;
	}

	public void setPartno(String partno) {
		this.partno = partno;
	}

	public Integer getProductid() {
		return this.productid;
	}

	public void setProductid(Integer productid) {
		this.productid = productid;
	}

	public String getProductname() {
		return this.productname;
	}

	public void setProductname(String productname) {
		this.productname = productname;
	}

	public double getQuantity() {
		return this.quantity;
	}

	public void setQuantity(double quantity) {
		this.quantity = quantity;
	}

	public Integer getRecnum() {
		return this.recnum;
	}

	public void setRecnum(Integer recnum) {
		this.recnum = recnum;
	}

	public Integer getSeq() {
		return this.seq;
	}

	public void setSeq(Integer seq) {
		this.seq = seq;
	}

	public String getStat() {
		return this.stat;
	}

	public void setStat(String stat) {
		this.stat = stat;
	}

	public Integer getSuppid() {
		return this.suppid;
	}

	public void setSuppid(Integer suppid) {
		this.suppid = suppid;
	}

	public String getSuppname() {
		return this.suppname;
	}

	public void setSuppname(String suppname) {
		this.suppname = suppname;
	}

	public String getSuppnuminvoice() {
		return this.suppnuminvoice;
	}

	public void setSuppnuminvoice(String suppnuminvoice) {
		this.suppnuminvoice = suppnuminvoice;
	}

	public double getSupptaxed() {
		return this.supptaxed;
	}

	public void setSupptaxed(double supptaxed) {
		this.supptaxed = supptaxed;
	}

	public double getSuppvat() {
		return this.suppvat;
	}

	public void setSuppvat(double suppvat) {
		this.suppvat = suppvat;
	}

	public double getSuppvatperc() {
		return this.suppvatperc;
	}

	public void setSuppvatperc(double suppvatperc) {
		this.suppvatperc = suppvatperc;
	}

	public String getTdoc() {
		return this.tdoc;
	}

	public void setTdoc(String tdoc) {
		this.tdoc = tdoc;
	}

	public double getTotalamount() {
		return this.totalamount;
	}

	public void setTotalamount(double totalamount) {
		this.totalamount = totalamount;
	}

	public String getType() {
		return this.type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getUm() {
		return this.um;
	}

	public void setUm(String um) {
		this.um = um;
	}

	public double getUnitprice() {
		return this.unitprice;
	}

	public void setUnitprice(double unitprice) {
		this.unitprice = unitprice;
	}

	public String getVatarticle() {
		return this.vatarticle;
	}

	public void setVatarticle(String vatarticle) {
		this.vatarticle = vatarticle;
	}

	public String getVatcode() {
		return this.vatcode;
	}

	public void setVatcode(String vatcode) {
		this.vatcode = vatcode;
	}

	public Integer getIdmaster() {
		return idmaster;
	}

	public void setIdmaster(Integer idmaster) {
		this.idmaster = idmaster;
	}

}